<?php
	header('Access-Control-Allow-Origin:*');
//    $snoArr = $_POST['sno'];
    $con = new mysqli("127.0.0.1", "root", "", "accounting");
    $con->query("SET NAMES 'utf8'");
    $selectSQL = "select * from user";
    $result = $con->query($selectSQL);
    $results = array();
    while ($line = mysqli_fetch_assoc($result)) {
        array_push($results,$line);
    }
    echo json_encode($results);
?>